home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / applications / 472 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.5 KB  |  86 lines

  1. Path: news.danadata.dk!usenet
  2. From: hendis@aix1.danadata.dk (Henrik Dissing)
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: Tools Manager and Memory
  5. Date: 11 Jan 1996 05:45:56 GMT
  6. Organization: DanaData Internet Services
  7. Message-ID: <2122.6584T31T1873@aix1.danadata.dk>
  8. References: <861.6581T612T2111@genie.geis.com> <9601090037.AA007ci@cvget.demon.co.uk>
  9. NNTP-Posting-Host: 193.162.156.17
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. On 09-Jan-96 01:37:05, Guy Tanner wrote:
  14.  
  15. > Steven Folberg (s.folberg@genie.geis.com) wrote:
  16. >: 
  17. >: Another question:  Can you get a TM dock button assigned to a CLI program
  18. >: to open a shell window (I'm running WB 3.0)?
  19. >: 
  20.  
  21. > Yes you can, I've been doing with several CLI commands.
  22.  
  23. > Here are the steps.
  24.  
  25. > 1) Create a script that calls the command you want with any keywords.
  26.  
  27. >   For Example I use the following to to unbatch my NewsDownloads if the
  28. >   connect is broken.
  29.  
  30. > ;ver$ 1.0 UnBatchNewsNTTP Script
  31. > ; For use with standard NTTP NewsBatch Files
  32.  
  33. > FailAT 35
  34.  
  35.  
  36. > echo "UnBatching News"
  37. > AmiTCP:bin/rnews uuspool:NewsBatch
  38.  
  39. > echo "Delete BatchFile"
  40. > wait 1
  41. > c:delete uuspool:NewsBatch QUIET
  42.  
  43. > Endcli
  44.  
  45. > 2) Save your script in a directory of your choice.
  46.  
  47. > 3) Change the Icon Type of the script to a Project. You can use the Icon
  48. > Editor
  49. >    that comes with the WorkBench to do this.
  50.  
  51. > 4) Select the Script with one click, and then bring up its Information
  52. > Window by
  53. >    using "Right Amiga + I"
  54.  
  55. > 5) In the Default Tool: box, enter C:IconX
  56.  
  57. > 6) Select New (bottom left) and then enter in the window right of the button
  58.  
  59. >    WINDOW=con:88/79/285/147/Script_is_running
  60.  
  61. > 7) Now setup the Script with Tools Manager as if it was just a standard
  62. > program.
  63. >    You will have the script run in its own shell.
  64.  
  65. That has got to be the the most complicated solution to this simple
  66. problem that anyone could come up with! :-)
  67.  
  68. Either that, or I don't understand the original question.
  69.  
  70. Anyway, here's my suggestion, in case you need an interactive shell:
  71.  
  72. In ToolManager, set the Exec Type to "CLI", and Command to:
  73. NewShell WINDOW "CON:<x>/<y>/<w>/<h>/<title>/AUTO>" FROM <script>
  74.  
  75. And in your example, assuming you only need the window to see what's
  76. going on, I would simply set Command to "UnBatchNewsNTTP" and put
  77. "con:88/79/285/147/Script_is_running" in the Output File text gadget.
  78.  
  79. I run my Startnet script this way and it works like a charm.
  80.  
  81. --
  82. Henrik Dissing                                E-mail:  hendis@aix1.danadata.dk
  83. Tranbjerg, Denmark                            FidoNet: 2:238/24.6
  84.  
  85.  
  86.